<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css"></link>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css"></link>
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.draggable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.droppable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.tree.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
  </head>
  
  <body style="padding-bottom:8px;">
  		<c:set var="disabled" value=""></c:set>
  		<c:if test="${not empty view}">
  			<c:set var="disabled" value="disabled"></c:set>
  		</c:if>
  		<form id="editForm" action="${ctx}/customer/save" method="post">
  			<input type="hidden" value="${obj.cust_id}" id="custId" name="p_custId" ></input>
  			<div class="box">
	  			<table>
	  				<tbody>
						<tr>
							<td class="message">
								<p><span>*</span>客户编码：</p>
							</td>
							<td colspan="1">
								<input type="text" id="custCode" name="p_custCode" value="${obj.cust_code }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;"></input>
							</td>
							<td class="message">
								<p><span>*</span>客户名称：</p>
							</td>
							<td>
								<input type="text" id="custName" name="p_custName" value="${obj.cust_name }"
									class="wd170 " ${disabled } maxLength="50" style="width: 100%;"></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>联系人：</p>
							</td>
							<td colspan="1">
								<input type="text" id="linkMan" name="p_linkMan" value="${obj.link_man }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;"></input>
							</td>
							<td class="message">
								<p>联系电话：</p>
							</td>
							<td>
								<input type="text" id="linkPhone" name="p_linkPhone" value="${obj.link_phone }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;"></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>联系手机：</p>
							</td>
							<td colspan="1">
								<input type="text" id="linkMobile" name="p_linkMobile" value="${obj.link_mobile }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;"></input>
							</td>
							<td class="message">
								<p>传真：</p>
							</td>
							<td>
								<input type="text" id="linkFax" name="p_linkFax" value="${obj.link_fax }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;"></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>地址：</p>
							</td>
							<td colspan="3">
								<input type="text" id="address" name="p_address" value="${obj.address }"
									class="wd170 " ${disabled } maxLength="50" style="width: 100%;"></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>备注：</p>
							</td>
							<td colspan="3">
								<input type="text" id="remark" name="p_remark" value="${obj.remark }"
									class="wd170 " ${disabled } maxLength="100" style="width: 100%;"></input>
							</td>
						</tr>
					</tbody>
	  			</table>
	  		</div>
        </form>
  </body>
</html>